import TerrainFactory from '../../src/terrain/TerrainFactory.js';
import TerrainType from '../../src/terrain/TerrainType';

/**
 * 添加地形数据
 * @param {} earth 
 */
 export default function addTerrain(earth){
    // let terrain = TerrainFactory.createWorldTerrain();
    // let terrain = TerrainFactory.createCustomXYZTerrain({
    //     url : "/terrain"
    // });
    let terrain = TerrainFactory.createTerrain(TerrainType.CESIUM);
    //let terrain = TerrainFactory.createTerrain(TerrainType.GPLATES);
    earth.setTerrain(terrain);
}